import request from '@/utils/request'

// 查询续药列表
export function listFollow(query) {
  return request({
    url: '/drug/follow/list',
    method: 'get',
    params: query
  })
}

// 查询续药详细
export function getFollow(followId) {
  return request({
    url: '/drug/follow/' + followId,
    method: 'get'
  })
}

// 新增续药
export function addFollow(data) {
  return request({
    url: '/drug/follow',
    method: 'post',
    data: data
  })
}

// 修改续药
export function updateFollow(data) {
  return request({
    url: '/drug/follow',
    method: 'put',
    data: data
  })
}

// 删除续药
export function delFollow(followId) {
  return request({
    url: '/drug/follow/' + followId,
    method: 'delete'
  })
}

// 导出续药
export function exportFollow(query) {
  return request({
    url: '/drug/follow/export',
    method: 'get',
    params: query
  })
}